package com.xpqh.ksg.modular.users.controller;

import com.xpqh.ksg.base.BaseController;
import com.xpqh.ksg.base.BaseResponseDTO;
import com.xpqh.ksg.modular.users.service.KsgUserNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ksg/user/notice")
public class KsgUserNoticeController extends BaseController {

    @Autowired
    private KsgUserNoticeService ksgUserNoticeService;

    @GetMapping("/list")
    public BaseResponseDTO getNoticeList() {
        return renderResultOk(ksgUserNoticeService.getNoticeList(getUserId()));
    }

}


